#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
void test()
{
	ST st;
	InitStack(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	while (!EmptyStack(&st))
	{
		printf("%d", TopStack(&st));
		StackPop(&st);
		printf(",%d\n", SizeStack(&st));
	}
	DestroyStack(&st);
}

int main()
{
	test();
	return 0;
}